<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备信息维护</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/layui_ext/dtree/dtree.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/layui_ext/dtree/font/dtreefont.css" media="all">
</head>
<body>
  <div class="layui-fluid" style="display: inline-block; width: 307px; border: 1px solid #ddd; padding: 0;overflow: hidden;">
    <div class="layui-card">
      <div class="layui-card-body">
        <div style="padding-bottom: 10px; position: relative;">
          <ul id="menubarTree" class="dtree" data-id="0"></ul>
        </div>
      </div>
    </div>
  </div>
  <div class="layui-body" id="LAY_app_body" style="top:0px; left:310px">
    <div class="layadmin-tabsbody-item layui-show">
      <iframe src="resume.html" frameborder="0" class="layadmin-iframe" name="tree" id="iframe_content" ></iframe>
    </div>
  </div>
<script src='../../layuiadmin/modules/jTools.js'></script>
<script src="../../layuiadmin/layui/layui.js"></script> 
<script>
  layui.config({
    base: '../../layuiadmin/' //配置 layui 第三方扩展组件存放的基础目录
  }).extend({
    index: 'lib/index'
    , my_send: '../myModules/my_send'
  }).use(['index','dtree','layer','jquery','http_proxyy','account'], function(){
    var  $ = layui.jquery
    ,dtree = layui.dtree;
    dtree.on("node('menubarTree')", function(data){
      contextE = data.param.context.split(' ');
      if (data.param.level === '2') {
        $('#iframe_content').attr('src','resume.html?systemName='+ encodeURI(data.param.context) +'&etType=');
      } else if (data.param.level === '3') {
        $('#iframe_content').attr('src','resume.html?systemName='+ encodeURI(data.parentParam.context) +'&etType='+ encodeURI(contextE[1]));
      }
    });
  });
  </script> 
</body>
</html>
